package com.petlab.forum;


import javax.annotation.Resource;

import org.aspectj.lang.JoinPoint;
import org.springframework.stereotype.Component;



@Component("forumDispathcer")
public class ForumDispathcer {
	
	private ForumObject forumObject;

	public ForumObject getForumObject() {
		return forumObject;
	}

	@Resource
	public void setForumObject(ForumObject forumObject) {
		this.forumObject = forumObject;
	}
	
	public void dispatcher(JoinPoint j) {
		Object obj[] = j.getArgs();

		Object o = obj[0];
		forumObject.detailsAdd(o);

	}
	
}
